package com.longyiqun.cm.service;

import com.github.pagehelper.PageInfo;
import com.longyiqun.cm.domain.BaseServerEntity;
import com.longyiqun.cm.domain.BuildRecordEntity;
import com.longyiqun.cm.domain.LoginInfo;

import java.io.IOException;

public interface ServerService {
    PageInfo getBaseServerForPaging(int pageIndex, int pageNum, String BaseServerType, String SystemType);
    PageInfo getbuildRecordForPaging(int pageIndex, int pageNum, String vServerName, String eStauts, String vLeader);
    int  Auditbuild(String buildID) throws IOException;
    int  addBuildService(BuildRecordEntity buildRecordEntity);
    BaseServerEntity  findOneBaseServer(String serverId);
    PageInfo   LookDeployLog(int pageIndex, int pageNum,String vServerName);
    int updateServerService (BaseServerEntity baseServerEntity);

    PageInfo getServerTypeForPaging(int pageIndex, int pageNum);
    PageInfo getSystemType(int pageIndex, int pageNum);
    PageInfo getProductType(int pageIndex, int pageNum);
    PageInfo getLanguageType(int pageIndex, int pageNum);
    PageInfo getDeployType(int pageIndex, int pageNum);
    LoginInfo getUserInfoSC(LoginInfo userName);

    int AddBaseServerSC(BaseServerEntity baseServerEntity);
}
